package com.lcxw.hxzb.friendcircle.project.system.domain;

import com.lcxw.hxzb.friendcircle.framework.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 会员砍价对象 ywpd_bargaining
 *
 * @author meeting
 * @date 2020-10-14
 */
public class YwpdBargaining extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long bargainingId;

    /**
     * 用户id
     */
    @ApiModelProperty(name = "用户id")
    private Long userId;

    /**
     * 次数
     */
    @ApiModelProperty(name = "次数")
    private Integer total;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(name = "总金额")
    private Double money;

    /**
     * 次数
     */
    @ApiModelProperty(name = "剩余金额")
    private Double surplus;

    /**
     * 每次砍价的金额数组
     */
    @ApiModelProperty(name = "每次砍价的金额数组")
    private String datas;


    private String status;

    private String code;

    public void setBargainingId(Long bargainingId) {
        this.bargainingId = bargainingId;
    }

    public Long getBargainingId() {
        return bargainingId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }


    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Double getSurplus() {
        return surplus;
    }

    public void setSurplus(Double surplus) {
        this.surplus = surplus;
    }

    public void setDatas(String datas) {
        this.datas = datas;
    }

    public String getDatas() {
        return datas;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("bargainingId", getBargainingId())
                .append("userId", getUserId())
                .append("total", getTotal())
                .append("money", getMoney())
                .append("surplus", getSurplus())
                .append("datas", getDatas())
                .append("createTime", getCreateTime())
                .toString();
    }
}
